package model

import "time"

// AlipayOpenSubApp 支付宝子应用
type AlipayOpenSubApp struct {
	BaseModel
	AppID           string    `gorm:"comment:应用ID"`
	OpenAppID       string    `gorm:"uniqueIndex:alipay_sub_app_id;comment:开放应用ID"`
	AuthTime        time.Time `gorm:"comment:授权时间"`
	AppAuthCode     string    `gorm:"comment:应用授权码"`
	AppAuthToken    string    `gorm:"comment:应用授权token"`
	AppRefreshToken string    `gorm:"comment:刷新token"`
	ReExpiresAt     time.Time `gorm:"comment:刷新token过期时间"`
	NotifyID        string    `gorm:"index:notify_id;comment:通知ID"`
	UserID          string    `gorm:"comment:用户ID"`
	Status          string    `gorm:"comment:状态 authorized unauthorized"`
}
